package com.information.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.information.manage.basic.common.result.Result;
import com.information.manage.model.entity.AddFileDO;
import com.information.manage.model.query.AddFileQuery;
import com.information.manage.model.vo.AllStatisticVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AddFileService extends IService<AddFileDO> {

    Result<Page<AddFileDO>> queryPage(AddFileQuery addFileQuery);

    Result<List<AddFileDO>> handleFileUpload(List<MultipartFile> archives, Integer listenFileTypeCode, HttpServletRequest request);

    Result<List<AllStatisticVO>> uploadStatistic(Integer days, Integer type);
}
